package com.niit.agricstore.mapper;

import com.niit.agricstore.entity.AfterSale;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface AftersaleMapper {
    //查询售后数据
    AfterSale findById(int aftersale_id);
    //查询所有售后记录
    List<AfterSale> findAllByPage();
    //更新售后状态
    int updateStatus(@Param("aftersale_id") int aftersale_id, @Param("aftersale_state") String aftersale_state);
}
